<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/mpd/config/config.php');
if (isset ($_POST ['hapus']))
{  
	
	$id = key ($_POST['hapus']);

	
    $query="DELETE FROM training_wajib WHERE  ID_TRAINING_WAJIB = '$id'";   
    mysql_query($query); 
	
header('Location: /mpd/admin/view/lihattraining.php');
}else{
echo "maaf gagal";
}

?>